<?php
    $chapter_active = "class='active'";
    if (isset($chapter_type)) {
        switch ($chapter_type) {
            case 'Review':
                $chapter_link = "Review";
                break;
            case 'Lesson':
                $chapter_link = 'Lesson';
                break;
            case 'Video':
                $chapter_link = 'Video';
                break;
            case 'Examples':
                $chapter_link = 'Examples';
                break;
            case 'Forum':
                $chapter_link = 'Forum';
                break;
            case 'Book':
                $chapter_link = 'Book';
                break;
            case 'Source':
                $chapter_link = 'Source';
                break;
            default:
                $chapter_link = "Review";
                break;
        }
    } else {
        $chapter_link = "Review";
    }       
?>	
    
    <div id='sub_menu'>
    	<ul>
            <li> <a class="none"> &nbsp; </a> </li>
        	<li> <a href='<?php echo base_url('Chapters/Review/' . $page_type_url); ?>' <?php if ($chapter_link == 'Review') echo $chapter_active; ?>> Tổng quan </a> </li>
            <li> <a href="<?php echo base_url('Chapters/Lesson/' . $page_type_url); ?>" <?php if ($chapter_link == 'Lesson') echo $chapter_active; ?>> Bài học </a> </li>
            <li> <a href="#" <?php if ($chapter_link == 'Video') echo $chapter_active; ?>> Video </a> </li>
            <li> <a href="#" <?php if ($chapter_link == 'Examples') echo $chapter_active; ?>> Ví dụ </a> </li>
            <li> <a href="#" <?php if ($chapter_link == 'Forum') echo $chapter_active; ?>> Diễn đàn </a> </li>
            <li> <a href="#" <?php if ($chapter_link == 'Book') echo $chapter_active; ?>> Books </a> </li>
            <li> <a href="#" <?php if ($chapter_link == 'Source') echo $chapter_active; ?>> Open Source </a> </li>
            <li> <a class="none"> &nbsp; </a> </li>
        </ul>
    </div>
    <div class="clear"></div>